import os

nuke_path=r'C:\Program Files\Nuke11.0v1\Nuke11.0.exe'
read_script_path=r'E:\PycharmOut\NukeOut\Nuke_Dev\pack\nscript\read_info.py'
nk_project_path=r'E:\PycharmOut\NukeOut\For_Nuke\TEST\tnk.nk'
OUT_DIR=r'E:\PycharmOut\NukeOut\For_Nuke\TEST\OUT'
cmd=f'"{nuke_path}" -t {read_script_path} {nk_project_path} {OUT_DIR}'

result= os.popen(cmd)
text=result.read()
result.close()

# print('text:',text)
data=text.split("('data:',")[1][:-2]
# print('data:::',data)
dic_data=eval(data)
print(dic_data)
# print(type(dic_data))